<form class="validate edit_from" novalidate="novalidate">

    <div class="row">
        <div class="col-md-12">
            <div class="form-group">
                <label for="username" class="control-label">用户名</label>
                <input type="hidden" name="id" value="{$info.id}">
                <input type="text" id="username" class="form-control" name="username" placeholder="用户名" value="{$info.username}">
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-6">
            <div class="form-group">
                <label for="password" class="control-label">密码</label>
                <input type="text" id='password' class="form-control" name="password" placeholder="不填则不修改密码">
            </div>
        </div>
        <div class="col-md-6">
            <div class="form-group">
                <label for="phone" class="control-label">电话</label>
                <input type="text" id="phone" class="form-control" name="phone" placeholder="电话" value="{$info.phone}">
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-6">
            <div class="form-group">
                <label for="email" class="control-label">邮箱</label>
                <input type="text" id="email" class="form-control" name="email" placeholder="邮箱" value="{$info.email}">
            </div>
        </div>
        <div class="col-md-6">
            <div class="form-group">
                <label for="truename" class="control-label">真实姓名</label>
                <input type="text" id="truename" class="form-control" name="truename" placeholder="真实姓名" value="{$info.truename}">
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-6">
            <div class="form-group">
                <label class="control-label">用户状态</label>
                <select class="form-control" name="status">
                    <option value="1" {eq name="info.status" value="1"} selected="selected" {/eq} >正常</option>
                    <option value="0" {eq name="info.status" value="0"} selected="selected" {/eq} >废弃</option>
                </select>
            </div>
        </div>
        <div class="col-md-6">
            <div class="form-group">
                <label class="control-label">用户角色</label>
                <select class="form-control" name="role">
                    {volist name='roles' id='role'}
                    <option value="{$key}" {eq name="$info.role" value="$key"} selected="selected" {/eq}>{$role}</option>
                    {/volist}
                </select>
            </div>
        </div>
    </div>

</form>